package com.woniu.his.app.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.his.app.infra.model.Registration;
import com.woniu.his.app.service.service.dto.*;

import java.util.List;

import com.woniu.his.app.service.service.param.PhoneLoginServiceParam;
import com.woniu.his.app.service.service.param.RegistrationServiceParam;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 挂号表 服务类
 * </p>
 *
 * @author dx
 * @since 2022-11-26
 */
public interface RegistrationService extends IService<Registration> {


    //根据身份证查询挂号历史信息
    List<RegHistoryDto> listAllRegistration(String identificationNo);


    List<AppHistoryRegDto>  listFee(Long caseHistoryId);

    List<AppDrugItemDto> listFeeDetail(Long prescriptionId, String type);

    void registration(RegistrationServiceParam registration);

    List<DeptAllDto> findAllDept();

    List<DeptAllDoctorDto> findAllDoctorByDeptId(Integer deptId);

    Map phoneLogin(PhoneLoginServiceParam loginServiceParam);

    void getCode(String userPhone);

    List<StaffSkdInfoDto> queryStaffAllSkdByStaffId(Integer staffId);

    RegistrationFeeDto getRegistrationFeeByCase(Long caseHistoryId);

    /**
     * 根据账单id查挂号数据
     * @param billId
     * @return
     */
    RegHistoryDto queryRegByBillId(Long billId);

    /**
     * 支付成功修改状态
     * @param billId
     * @return
     */
    Boolean paySuccess(Long billId);
}
